package com.me.bbs.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.BanDTO;
import com.me.bbs.entity.Ban;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lm
 * @since 2023-01-29
 */
public interface BanMapper extends BaseMapper<Ban> {
    Page<BanDTO> searchUser(Page page,@Param("q") String q, @Param("forumId") Long forumId);

    Page<BanDTO> queryBansPage(Page page, @Param("forumId") Long forumId);
}
